package com.sluggard.security;

import com.sluggard.security.properties.SecurityConfigConstants;
import com.sluggard.security.properties.SecurityStarterProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
@ComponentScan("com.sluggard.security")
@EnableConfigurationProperties(value = SecurityStarterProperties.class)
@ConditionalOnProperty(name = SecurityConfigConstants.ENABLE, havingValue = "true", matchIfMissing = true)
public class DefaultSecurityAutoConfiguration {

    public DefaultSecurityAutoConfiguration() {
        log.info(SecurityConfigConstants.LOADING_SECURITY_CONFIGURE);
    }


}
